package com.lich.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lich.dao.CityMapper;
import com.lich.entity.City;

@Service
public class CityService {

	@Resource
	CityMapper cityMapper;
	
	public City getCityId(String name){
		City city=cityMapper.selectByName(name);
		return city;
	}
}
